{extend name="base" /}

{block name="content"}

<div class="ml-64">
	{:yoyo_render('input', ['name'=>'username', 'label'=>'用户名'])}
	{:yoyo_render('input', ['name'=>'nickname', 'label'=>'昵称','type'=>'text'])}
	{:yoyo_render('select', ['name'=>'role', 'label'=>'角色', 'options'=>$info['roles']])}
	{:yoyo_render('input', ['name'=>'email', 'label'=>'邮箱','type'=>'email'])}
	{:yoyo_render('input', ['name'=>'password', 'label'=>'密码','type'=>'password'])}
	{:yoyo_render('input', ['name'=>'mobile', 'label'=>'手机号','type'=>'mobile'])}
	{:yoyo_render('image', ['name'=>'avatar', 'label'=>'头像'])}
	{:yoyo_render('switchs', ['name'=>'status', 'label'=>'状态'])}

	<div class="clear-both mt-12">
		<button type="submit" class="ajax-post inline-block px-6 py-2.5 bg-blue-600 text-white font-medium text-xs leading-tight uppercase rounded shadow-md hover:bg-blue-700 hover:shadow-lg focus:bg-blue-700 focus:shadow-lg focus:outline-none focus:ring-0 active:bg-blue-800 active:shadow-lg transition duration-150 ease-in-out" target-form="form-control">提交</button>
	</div>
</div>

{/block}